import request from '../utils/request';
import { objectToFormData } from '@/utils/formDataFormat';

//获取全部的新闻信息
export function APIFetchAllNewsInfo(){
    return request(
        {
            url:'http://119.3.218.94:5000/api_1_0/universityNews/getallNews',
            method:'get',
        }
    )
}
//系统管理员下架某一条新闻信息
export function APIFetchSysAdminDeleteNews(data){
    return request(
        {
            url:'http://119.3.218.94:5000/api_1_0/universityNews/sys_delNews',
            method:'put',
            params: data,
            data: objectToFormData(data),
        }
    )
}